package com.cstor.liang.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/8/31.
 */
@Component
public class AlarmTask {

    private Logger logger = LoggerFactory.getLogger(this.getClass());
    private static int count = 0;

    @Scheduled(cron="0/10 * * * * ?")
    public void executeAlarmCheckTask() {
        logger.warn("aheeeeeeeeeeeeeeeeee " + ++count);

    }
}
